package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.FormTeamSetEntity;
import com.xbongbong.pro.domain.entity.UpdateDataEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface FormTeamSetDao {
    Long insert(FormTeamSetEntity entity);

    void insertBatch(List<FormTeamSetEntity> list);

    FormTeamSetEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(FormTeamSetEntity entity);

    List<FormTeamSetEntity> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);

    Integer updateBatch(@Param("list") List<UpdateDataEntity> list,  @Param("corpid") String corpid);

}